//
//  HXChangeViewController.m
//  KD
//
//  Created by 梅洋 on 16/6/16.
//  Copyright © 2016年 Whx. All rights reserved.
//

#import "HXChangeViewController.h"
#import "NetworkAPI.h"

@interface HXChangeViewController ()
@property (weak, nonatomic) IBOutlet UILabel *projectNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *buileCompany;

@end

@implementation HXChangeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    _projectNameLabel.text = _sendPrjName;
    _buileCompany.text = _sendBuildCorpName;

}

- (IBAction)finishButton:(UIButton *)sender {
    
    
    [NetworkAPI changeRedProgectStateWithKeyGuid:_sendKeyGuid
                                          UserID:[UserDefaultHandler getUserDetault:kID]
                                         Success:^(HXBaseModel *result) {
                                             if ([result.code isEqualToString:@"200"]) {
                                                 [SVProgressHUD showSuccessWithStatus:@"更改成功"];
                                             }
                                         }
                                         failure:^(NSError *err) {
                                             [SVProgressHUD showErrorWithStatus:@"更改失败"];
                                         }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

-(void)setSendPrjName:(NSString *)sendPrjName {
    
    _sendPrjName = sendPrjName;
    NSLog(@"更改建设状态===============%@ ",self.sendPrjName);

}
-(void)setSendBuildCorpName:(NSString *)sendBuildCorpName {
    
    _sendBuildCorpName = sendBuildCorpName;
    NSLog(@"更改建设状态===============%@ " ,self.sendBuildCorpName);

}

-(void)setSendKeyGuid:(NSString *)sendKeyGuid {
    
    _sendKeyGuid = sendKeyGuid;
    NSLog(@"更改建设状态===============%@ " ,self.sendKeyGuid);

}

@end






